<style>
    table, th, td {
        border: 1px solid black;
        border-collapse: collapse;
    }
    th,td {
        padding: 15px;
        text-align: center;
    }
</style>
<p id="notice"><%= notice %></p>


<h1>Listing Users</h1>

<table>
  <thead>

  </thead>

  <tbody>
    <% @users.each do |user| %>
      <tr>
        <td><%= user.email %></td>
        <td><button><%= link_to 'Show', user %></button></td>
        <td><button><%= link_to 'Edit', edit_user_path(user) %></button></td>
        <td><%= button_to "Destroy", user, :method=>:delete, :class=>:destroy %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New User', new_user_path %>
